<template>
    <div class="left-nav">
        <ul class="linklist" @click="hide">
            <li>
                <router-link :to="{name:'index'}" class="linkgo">
                    <span>首页</span>
                    <span class="symbol">&gt;</span>
                </router-link>
            </li>
            <li>
                <router-link :to="{name:'film'}"  class="linkgo">
                    <span>影片</span>
                    <span class="symbol">&gt;</span>
                </router-link>
            </li>
            <li>
                <router-link :to="{name:'cinema'}"  class="linkgo">
                    <span>影院</span>
                    <span class="symbol">&gt;</span>
                </router-link>
            </li>
            <li>
                <router-link :to="{name:'index'}" class="linkgo">
                    <span>商城</span>
                    <span class="symbol">&gt;</span>
                </router-link>
            </li>
            <li>
                <router-link :to="{name:'index'}" class="linkgo">
                    <span>演出</span>
                    <span class="symbol">&gt;</span>
                </router-link>
            </li>
            <li>
                <router-link :to="{name:'login'}"  class="linkgo">
                    <span>我的</span>
                    <span class="symbol">&gt;</span>
                </router-link>
            </li>
            <li>
                <router-link :to="{name:'index'}" class="linkgo">
                    <span>卖座卡</span>
                    <span class="symbol">&gt;</span>
                </router-link>
            </li>
        </ul>
</div>
</template>    

<script>
    import $ from 'jquery';
    export default{
        methods:{
            hide:function(){
                $('.linklist').parent().animate({width:0},300).parent().css('background', 'rgba(0,0,0,0)').animate({width:0},300);
            }
        }
    }
</script>
<style scoped>
    .left-nav{        
        border-top: 1px solid #222;
        box-shadow: 0 1px 1px #363636 inset;
        background: #282828;
        position: absolute;
        display: block;
        top: 0;
        right: 1.1rem;
        bottom: 0;
        left: 0;
    }
    ul,li{
        list-style:none;
    }
    .left-nav ul li{
        line-height:0.5rem;
    }
    .left-nav ul li .linkgo{
        display: block;
        width: 100%;
        padding: 0 0.16rem;
        border-bottom: 1px dotted #333;
        color: #9a9a9a;
        font-size: 0.14rem;
        box-sizing:border-box;
    }
    .left-nav ul li .linkgo .symbol{
        float: right;
        color: #666;
        font-family: cursive;
    }
</style>